package com.steven.web.controller;

import com.steven.web.utils.SayHello;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HomeController {

    @Autowired
    private SayHello sayHello;

    @GetMapping("test")
    @ResponseBody
    public String test(){
        return sayHello.say();
    }
}
